from zope.interface import implements, Interface

from twisted.plugin import IPlugin

from pyhsrv import interfaces, errors
from pyhsrv.db.sasync_backend import SasyncDBBackend

class SasyncDBPlugin(object):

    implements(IPlugin, interfaces.IDBPlugin)

    def getdb(self, url):
        return SasyncDBBackend(url)

sdbp = SasyncDBPlugin()
